package com.hcj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hcj.pojo.Customer;
import com.hcj.util.MyResponse;

import java.util.List;

public interface CustomerService {
    //实现登陆
    boolean login(Customer users);

    //实现注册
    MyResponse register(Customer users);
    //实现删除
    MyResponse delete(Customer users);
    //通过姓名查找
    List<Customer> selectByName(String username);

    /**
     * 分页查询所有用户
     */
    //通过查询所有
    Page<Customer> selectAllPaging(Integer currentPage, Integer pageSize);
    MyResponse update(Customer customer);

    Customer selectOneByName(Customer customer);

    int add(Customer customer);


}
